#include "Sector.h"
Sector::Sector(int idCell,
               double radius,
               double minDistance,
               double X,
               double Y, double angleStart,double angleEnd ):Cell(idCell,radius,minDistance,X,Y),
    m_dCoveredAngleStart(angleStart),
    m_dCoveredAngleEnd(angleEnd)
{}

void
Sector::SetCoveredAngleStart(double angle)
{
    m_dCoveredAngleStart = angle;
}

void
Sector::SetCoveredAngleEnd(double angle)
{
    m_dCoveredAngleEnd = angle;
}
double
Sector::GetCoveredAngleStart() const
{
    return m_dCoveredAngleStart;
}

double
Sector::GetCoveredAngleEnd() const
{
    return m_dCoveredAngleEnd;
}

double
Sector::GetTotalCoveredAngle() const
{
    return (m_dCoveredAngleEnd - m_dCoveredAngleStart);
}
void
Sector::Print (void)
{
    Cell::Print();
    std::cout << "Sector covers from: " << GetCoveredAngleStart() << " to :" << GetCoveredAngleEnd() <<std::endl;
}

Sector::~Sector()
{

}

